import request from '@/utils/request'

export function addSchool(data) {
    return request({
        url: '/by/school',
        method: 'post',
        data: data
    })
}


export function listSchool(query) {
    return request({
        url: '/by/school/list',
        method: 'get',
        params: query
    })
}

export function delSchool(postId) {
    return request({
        url: '/by/school/' + postId,
        method: 'delete'
    })
}



export function getSchool(postId) {
    return request({
        url: '/by/school/' + postId,
        method: 'get'
    })
}


export function updateSchool(data) {
    return request({
        url: '/by/school/',
        method: 'put',
        data: data
    })
}


export function getAllSchool() {
    return request({
        url: '/by/school/getAllSchool/',
        method: 'post'
    })
}


export function getAllFd() {
    return request({
        url: '/by/school/getAllSchool/',
        method: 'post'
    })
}
